<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

/**
 * Think 系统函数库
 */

function show ($code,$message,$data=array()){
    $result = array(
        'code'=>$code,
        'message'=>$message,
        'data'=>$data,
    );
    exit(json_encode($result));
}
function getMd5Password($password){
    return md5($password . C('MD5_PRE'));
}
